import tkinter

def key_event(event):
    pass

win = tkinter.Tk()
win.title("HelloWorld")
win.geometry('800x480+400+200')
win.bind('<Key>', key_event)
win.mainloop()